import axios from "../axios";
export default {
	//获取分类
	getClasses() {
		return axios({
			url: "classes/getClasses",
			method: "get",
		});
	},
	//添加分类
	addClasses(data) {
		// console.log(data);
		return axios({
			url: "classes/addClasses",
			method: "post",
			data,
		});
	},
	//删除分类
	deleteClasses(data) {
		console.log(1111, data);
		return axios({
			url: "classes/deleteClasses",
			method: "post",
			data,
		});
	},
	//修改分类
	updateClasses(data) {
		console.log(1111, data);
		return axios({
			url: "classes/updateClasses",
			method: "post",
			data,
		});
	},
};
